OpenBuildings GenerativeComponents Help

Function Name and Type

The syntax for declaring a function is type of function then the name of the function followed by arguments in parenthesis. The user can and should omit the word 'function' when creating a named function. The word 'function' is intended only when creating anonymous functions, as described below. Specifying the type of a function is not required by OpenBuildingsā„¢ GenerativeComponents but it can be regarded as good practice. Specifying the type allows an extra level of checks such as that the return value is of the same type. The Type can additionally be specified as an array or multidimensional array using square brackets.

Type NameOfFunction(Type nameWithinFunction, Type nameWithinFunction,
ā€¦)